package top.huxy.boot.service;

import top.huxy.boot.model.dto.*;
import top.huxy.boot.model.entity.User;
import top.huxy.boot.model.vo.*;

import java.util.List;

public interface BlogService {
    Integer addBlog(DTOBlog dtoBlog,int adminId);

    List<VOBlog> getBlogList(Pager pager);

    VOBlog getBlogById(Integer id);

    void replyComment(DTOReply reply,User user);

    void addComment(DTOComment comment, User user);

    List<VOComment> getCommentList(Integer blogID);

    List<VOReply> getCommentReplyList(Integer commentId);

    int getRidByCid(Integer rid);

    int replyReply(int cid, DTOReplyReply reply, User user);

    List<VOBlogQuery> selectBlogByTitle(String title);

    VOBlogDetails getBlogDetailById(Integer id);

    int updateBlog(DTOBlog dtoBlog, Integer id);

    List<VOBlog> getAdminBlogList();

    int getPublicBlogCount();

    int getProtectBlogCount();

    int getPrivateBlogCount();

    int getTopBlogCount();
}
